<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.front.service.financial.entity.UserZhEntity"%>
<%@page import="com.blockchain.front.service.financial.FinancialManage"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "myAssets_myAssets");
String _TITLE_ = str+"- "+configureProvider.getProperty(SystemVariable.SITE_NAME);
CURRENT_SUB_CATEGORY="WDZC";
PC_TITLE_NAME="WDZC";
FinancialManage manage=serviceSession.getService(FinancialManage.class);
UserZhEntity z=manage.getCny();
UserZhEntity [] us=manage.getZhXlb();
BigDecimal totalAsset = manage.getAllZc();
%>
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
<%@include file="/WEB-INF/include/sfrz.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<div class="autobox">
    <div class="now">
        <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a> &gt; <a href="<%=controller.getViewURI(request,com.blockchain.front.servlets.financial.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_financeCenter")%></a> &gt; <%=languageDefine.getValue(request, "myAssets_myAssets")%>
    </div>
    <div class="assets_center clear po_re zin70">
	  <%@include file="/WEB-INF/include/financial/left.jsp"%>		
        <div class="assets_content w900 right bg_w">
            <div id="widget" style="top: 0px;background: #ffffff;">
                <div class="safe_center clear" style="padding-left: 0px; ">
   						 <h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;"><%=languageDefine.getValue(request, "myAssets_myAssets")%></h1>
   				</div>
   				<div class="sj" style="top: 40px; left: 60px;"></div>
                <div class="coin_style_box">
                    <ul>
                        <li><img src="<%=controller.getStaticPath(request)%>/images/coin_rmb.png" alt="" />　<%=languageDefine.getValue(request, "myAssets_eur")%></li>
                        <li><%=languageDefine.getValue(request, "myAssets_available")%>：<span class="green" id="cny_balance"><%=Formater.formatAmount_(z.cny_ky,4)%></span></li>
                        <li><%=languageDefine.getValue(request, "myAssets_freeze")%>：<span class="orange" id="cny_lock"><%=Formater.formatAmount_(z.cny_dj,4)%></span></li>
                        <li style="width: 250px;"><%=languageDefine.getValue(request, "myAssets_totalAssets")%>：<b id="cny_total"><%=Formater.formatAmount_(totalAsset,4)%></b></li>
                    </ul>
                </div>
                <div class="coin_list_top">
                    <ul>
                        <li class="" style="width: 170px;"><%=languageDefine.getValue(request, "myAssets_currency")%></li>
                        <li class="" style="width: 130px;"><%=languageDefine.getValue(request, "myAssets_availableCurrency")%></li>
                        <li class="" style="width: 130px;"><%=languageDefine.getValue(request, "myAssets_freezeEntrust")%></li>
                        <li class="" style="width: 130px;"><%=languageDefine.getValue(request, "myAssets_lock")%></li>
                        <li class="" style="width: 130px;"><%=languageDefine.getValue(request, "myAssets_total")%></li>
                        <li class="" style="width: 120px;"><%=languageDefine.getValue(request, "myAssets_equivalent")%> </li>
                        <li class="" style="width: 60px;"><%=languageDefine.getValue(request, "myAssets_operating")%></li>
                    </ul>
                </div>
            </div>
            <ul class="coin_list" id="grid-finance">
            <%if(us!=null){for(UserZhEntity u:us){
            %>
            <li>
            <dl>
               <dt class="" style="width: 180px;height: 70px;">
       					<div class="coin_pic" style="width: 40px;">
                        	<img src="<%if(!StringHelper.isEmpty(u.tblj)){%><%=fileStore.getURL(u.tblj)%><%}%>" alt="" width="40" style="padding-top: 10px;" />
      				 	</div>
                      	<div class="coin_name">
        					<div><%StringHelper.filterHTML(out,u.zwm);%>(<%StringHelper.filterHTML(out,u.ywjc);%>)</div>
        					<p class="red0"><%=Formater.formatAmount_(u.zxj,u.ws)%></p>
       					</div>
     					</dt>
                  	  <dd class="" style="width: 130px;"><%=Formater.formatAmount_(u.xlb_ky,u.ws)%></dd>
                       <dd class="" style="width: 130px;"><%=Formater.formatAmount_(u.xlb_dj,u.ws)%></dd>
                       <dd class="" style="width: 130px;"><%=Formater.formatAmount_(u.xlb_sd,u.ws)%></dd>
                       <dd class="" style="width: 130px;"><%=Formater.formatAmount_(u.xlb_ky.add(u.xlb_dj),u.ws)%></dd>
                       <dd class="" style="width: 120px;"><%=Formater.formatAmount_Math(u.xlb_ky.add(u.xlb_dj),u.zxj)%></dd>
                       <dd class="" style="width: 60px;">
       					<a href="<%=controller.getPagingItemURI(request, com.blockchain.front.servlets.trading.index.class,u.scid)%>"><%=languageDefine.getValue(request, "myAssets_toTrade")%></a>
      				</dd>
                 </dl>
                 </li>
                <%}}%> 
            </ul>
        </div>
    </div>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
    //隔行变色
    function change_bg(id) {
        var oCoin_list = $('#' + id);
        var oC_li = oCoin_list.find('li');
        var oInp = oCoin_list.find('input');
        for (var i = 0; i < oC_li.length; i++) {
            oC_li.eq(i).css('background-color', i % 2 ? '#fff' : '#f8f8f8');
            oInp.mouseover(function() {
                this.style.color = '#fff';
                this.style.backgroundColor = '#e55600'
            });
            oInp.mouseout(function() {
                this.style.color = '#e55600';
                this.style.background = 'none'
            });
        }
    }
    function change_bg_1(id, tag, col1, col2) {
        var oCoin_list = $('#' + id);
        var oC_li = oCoin_list.find(tag);
        for (var i = 0; i < oC_li.length; i++)
            oC_li.eq(i).css('background-color', i % 2 ? col1 : col2);
    }
    //移入行变色
    function change_line_bg(id, tag, nobg) {
        var oCoin_list = $('#' + id);
        var oC_li = oCoin_list.find(tag);
        var oInp = oCoin_list.find('a');
        var oldCol = null;
        var newCol = null;
        if (!nobg) {
            for (var i = 0; i < oC_li.length; i++) {
                oC_li.eq(i).css('background-color', i % 2 ? '#fff' : '#f8f8f8');
                oInp.mouseover(function() {
                    this.style.color = '#fff';
                    this.style.backgroundColor = '#0d66bf';
                });
                oInp.mouseout(function() {
                    this.style.color = '#0d66bf';
                    this.style.background = 'none';
                });
            }
        }
        oCoin_list.find(tag).hover(function() {
            oldCol = $(this).css('backgroundColor');
            $(this).css('background-color', '#f9f2dd');
        }, function() {
            $(this).css('background-color', oldCol);
        })
    }
    change_line_bg('grid-finance', 'li');
    var rollSet = $('#widget');
    var offset = rollSet.offset();
    var fwidth = $("#footer").height();
    $(window).scroll(
            function() {
                var scrollTop = $(window).scrollTop();
                var scrollBtm = $(document).height() - $(window).scrollTop()
                        - $("#widget").height();
                if (offset.top < scrollTop) {
                    if (scrollBtm > fwidth) {
                        rollSet.removeClass('absolute').addClass('fixed')
                    } else {
                        rollSet.removeClass('fixed').addClass('absolute')
                    }
                } else {
                    rollSet.removeClass('fixed')
                }
            });
</script>
</body>
</html>	
	
